export type Tabbar = {
	name: string,
	iconPath: string,
	selectedIconPath: string,
	pagePath: string
}

/**
 * 用户token信息
 */
export interface UToken{
	token: string,
	tokenExpired: number | string
}

/**
 * 用户信息
 */
export interface User{
	_id: string,
	username?: string,
	register_date: number,
	nickname: string,
	avatar?: string
}

/**
 * 列表查询结果
 */
export interface Result{
	code: number,
	msg: string,
	total?: number,
	[key: string]: any
}

/**
 * 错误结果
 */
export interface ResultError{
	code: number,
	msg: string,
	[key: string]: any
}

/**
 * 查询列表
 */
export interface RequestListParams{
	pageIndex: number,
	pageSize: number,
	[key: string]: any
}

/**
 * 普通list数据
 */
export interface ResultList extends Result{
	rows?: Array<any>
}

/**
 * 查询信息
 */
export interface ResultInfo extends Result{
	info?: any 
}

/**
 * 查询自己的用户信息
 */
export interface ResultUserInfo extends Result{
	userInfo?: User,
	vk_uni_token?: UToken 
}

/**
 * 轮播图
 */
export interface Swiper{
	_id: string,
	title?: string,
	cover: string,
	type: string,
	url?: string,
	enable: boolean
}
